<template>
<!-- 胸痛诊疗 -->
    <div >
        <div class="header">
            <image :src="titleleftimg" class="header-left-img" @click="finish"></image>
            <div class="header-center"><text class="header-text">胸痛诊疗</text></div>
            <div class="header-right" @click="save" v-if="canSave"><text class="header-right-text">保存</text></div>
            <div class="header-right-s" v-if="! canSave"><text class="header-right-text">保存</text></div>
        </div>
        <list>
            <cell>
                <div class="content pT-20">
                    <div class="box">
                        <div class="checkbox" :class="[resData.CP_DIAGNOSIS_CODE==='2'?'box-active':'']" @click='ISChecked("CP_DIAGNOSIS_CODE","2"),
                            resData.IS_THROMBOLYSIS_DT="",resData.IS_ECT="",resData.IS_CABG="",resData.IS_ECT="",resData.IS_CDU="",resData.IS_EMRADIOGRAPHY="",
                            resData.IS_ELRADIOGRAPHY="",resData.NSTEMI_TYPE="",resData.NSTEMI_TYPE="",resData.IS_EMPCI="",resData.IS_DELAY="",resData.IS_REPOTHER="",
                            resData.TREATMENT_STRATEGY_CODE="",resData.CP_DIAGNOSIS_NAME="STEMI"'
                            ><text class="checkbox-text" :class="[resData.CP_DIAGNOSIS_CODE==='2'?'box-text-active':'']">STEMI</text></div>
                        <div class="checkbox mf-10" :class="[resData.CP_DIAGNOSIS_CODE==='3'?'box-active':'']" @click='ISChecked("CP_DIAGNOSIS_CODE","3"),
                            resData.IS_THROMBOLYSIS_DT="",resData.IS_ECT="",resData.IS_CABG="",resData.IS_ECT="",resData.IS_CDU="",resData.IS_EMRADIOGRAPHY="",
                            resData.IS_ELRADIOGRAPHY="",resData.NSTEMI_TYPE="",resData.NSTEMI_TYPE="",resData.IS_EMPCI="",resData.IS_DELAY="",resData.IS_REPOTHER="",
                            resData.TREATMENT_STRATEGY_CODE="",resData.CP_DIAGNOSIS_NAME="NSTEMI"'
                            ><text class="checkbox-text" :class="[resData.CP_DIAGNOSIS_CODE==='3'?'box-text-active':'']">NSTEMI</text></div>
                        <div class="checkbox mf-10" :class="[resData.CP_DIAGNOSIS_CODE==='4'?'box-active':'']" @click='ISChecked("CP_DIAGNOSIS_CODE","4"),
                            resData.IS_THROMBOLYSIS_DT="",resData.IS_ECT="",resData.IS_CABG="",resData.IS_ECT="",resData.IS_CDU="",resData.IS_EMRADIOGRAPHY="",
                            resData.IS_ELRADIOGRAPHY="",resData.NSTEMI_TYPE="",resData.NSTEMI_TYPE="",resData.IS_EMPCI="",resData.IS_DELAY="",resData.IS_REPOTHER="",
                            resData.TREATMENT_STRATEGY_CODE="",resData.CP_DIAGNOSIS_NAME="UA"'
                            ><text class="checkbox-text" :class="[resData.CP_DIAGNOSIS_CODE==='4'?'box-text-active':'']">UA</text></div>
                        <div class="checkbox mf-10" :class="[resData.CP_DIAGNOSIS_CODE==='5'?'box-active':'']" @click='ISChecked("CP_DIAGNOSIS_CODE","5"),
                            resData.IS_THROMBOLYSIS_DT="",resData.IS_ECT="",resData.IS_CABG="",resData.IS_ECT="",resData.IS_CDU="",resData.IS_EMRADIOGRAPHY="",
                            resData.IS_ELRADIOGRAPHY="",resData.NSTEMI_TYPE="",resData.NSTEMI_TYPE="",resData.IS_EMPCI="",resData.IS_DELAY="",resData.IS_REPOTHER="",
                            resData.TREATMENT_STRATEGY_CODE="",resData.CP_DIAGNOSIS_NAME="主动脉夹层"'
                            ><text class="checkbox-text" :class="[resData.CP_DIAGNOSIS_CODE==='5'?'box-text-active':'']">主动脉夹层</text></div>
                        <div class="checkbox mf-10" :class="[resData.CP_DIAGNOSIS_CODE==='6'?'box-active':'']" @click='ISChecked("CP_DIAGNOSIS_CODE","6"),
                            resData.IS_THROMBOLYSIS_DT="",resData.IS_ECT="",resData.IS_CABG="",resData.IS_ECT="",resData.IS_CDU="",resData.IS_EMRADIOGRAPHY="",
                            resData.IS_ELRADIOGRAPHY="",resData.NSTEMI_TYPE="",resData.NSTEMI_TYPE="",resData.IS_EMPCI="",resData.IS_DELAY="",resData.IS_REPOTHER="",
                            resData.TREATMENT_STRATEGY_CODE="",resData.CP_DIAGNOSIS_NAME="肺栓塞"'
                            ><text class="checkbox-text" :class="[resData.CP_DIAGNOSIS_CODE==='6'?'box-text-active':'']">肺栓塞</text></div>
                    </div>
                    <div class="box" v-if="resData.CP_DIAGNOSIS_CODE==='2' || resData.CP_DIAGNOSIS_CODE==='4'">
                        <div class="line mR-0">
                            <div class="title-auto"><text class="box-text">本院心内科医生首诊时间:</text></div>
                            <div class="input"  @click="getTime('FIRST_TREATMENT_TIME')">
                                <text class="input-text">{{resData.FIRST_TREATMENT_TIME}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line"></div>
                    </div>
                    <div class="box" v-if="resData.CP_DIAGNOSIS_CODE==='2' || resData.CP_DIAGNOSIS_CODE==='6'">
                        <div class="title-max"><text class="box-text">溶栓核查:</text></div>
                        <div class="checkbox" :class="[resData.THROM_CHECK==='1'?'box-active':'']" @click="ISChecked('THROM_CHECK','1')"><text class="checkbox-text" :class="[resData.THROM_CHECK==='1'?'box-text-active':'']">合适</text></div>
                        <div class="checkbox mf-10" :class="[resData.THROM_CHECK==='0'?'box-active':'']" @click="ISChecked('THROM_CHECK','0')"><text class="checkbox-text" :class="[resData.THROM_CHECK==='0'?'box-text-active':'']">不合适</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">24小时强化他汀治疗:</text></div>
                        <div class="checkbox" :class="[resData.INTENSIFY_STATINS_TREAT==='1'?'box-active':'']" @click="ISChecked('INTENSIFY_STATINS_TREAT','1')"><text class="checkbox-text" :class="[resData.INTENSIFY_STATINS_TREAT==='1'?'box-text-active':'']">是</text></div>
                        <div class="checkbox mf-10" :class="[resData.INTENSIFY_STATINS_TREAT==='0'?'box-active':'']" @click="ISChecked('INTENSIFY_STATINS_TREAT','0')"><text class="checkbox-text" :class="[resData.INTENSIFY_STATINS_TREAT==='0'?'box-text-active':'']">否</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">ß受体阻滞剂使用:</text></div>
                        <div class="checkbox" :class="[resData.RECEPTOR_RETARDANT_USING==='1'?'box-active':'']" @click="ISChecked('RECEPTOR_RETARDANT_USING','1')"><text class="checkbox-text" :class="[resData.RECEPTOR_RETARDANT_USING==='1'?'box-text-active':'']">是</text></div>
                        <div class="checkbox mf-10" :class="[resData.RECEPTOR_RETARDANT_USING==='0'?'box-active':'']" @click="ISChecked('RECEPTOR_RETARDANT_USING','0')"><text class="checkbox-text" :class="[resData.RECEPTOR_RETARDANT_USING==='0'?'box-text-active':'']">否</text></div>
                    </div>
                    <div class="box" v-if="resData.CP_DIAGNOSIS_CODE==='3' || resData.CP_DIAGNOSIS_CODE==='4'">
                        <div class="title-max"></div>
                        <div class="checkbox" :class="[resData.NSTEMI_TYPE==='1'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','1')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='1'?'box-text-active':'']">紧急介入治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.NSTEMI_TYPE==='2'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','2')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='2'?'box-text-active':'']">紧急仅造影</text></div>
                        <div class="checkbox mf-10" :class="[resData.NSTEMI_TYPE==='3'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','3')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='3'?'box-text-active':'']">24H内介入治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.NSTEMI_TYPE==='4'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','4')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='4'?'box-text-active':'']">72H内介入治疗</text></div>
                    </div>
                    <div class="box" v-if="resData.CP_DIAGNOSIS_CODE==='3' || resData.CP_DIAGNOSIS_CODE==='4'">
                        <div class="title-max"></div>
                        <div class="checkbox" :class="[resData.NSTEMI_TYPE==='5'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','5')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='5'?'box-text-active':'']">早期仅造影</text></div>
                        <div class="checkbox mf-10" :class="[resData.NSTEMI_TYPE==='6'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','6')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='6'?'box-text-active':'']">择期介入治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.NSTEMI_TYPE==='7'?'box-active':'']" @click="ISChecked('NSTEMI_TYPE','7')"><text class="checkbox-text" :class="[resData.NSTEMI_TYPE==='7'?'box-text-active':'']">保守治疗</text></div>
                    </div>
                    <div class="box" v-if="resData.CP_DIAGNOSIS_CODE==='3' || resData.CP_DIAGNOSIS_CODE==='4'">
                        <div class="title-max"></div>
                        <div class="checkbox" :class="[resData.IS_CABG==='1'?'box-active':'']" @click="reverse('IS_CABG')"><text class="checkbox-text" :class="[resData.IS_CABG==='1'?'box-text-active':'']">CABG</text></div>
                        <div class="checkbox mf-10" :class="[resData.IS_REPOTHER==='1'?'box-active':'']" @click="reverse('IS_REPOTHER')"><text class="checkbox-text" :class="[resData.IS_REPOTHER==='1'?'box-text-active':'']">其他</text></div>
                    </div>
                    <div v-if="resData.CP_DIAGNOSIS_CODE==='2'">
                        <div class="box">
                            <div class="title-max"><text class="box-text">再灌注措施:</text></div>
                            <div class="checkbox" :class="[resData.IS_EMPCI==='1'?'box-active':'']" @click="reverse('IS_EMPCI')"><text class="checkbox-text" :class="[resData.IS_EMPCI==='1'?'box-text-active':'']">急诊PCI</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_THROMBOLYSIS_DT==1?'box-active':'']" @click="reverse('IS_THROMBOLYSIS_DT')"><text class="checkbox-text" :class="[resData.IS_THROMBOLYSIS_DT==='1'?'box-text-active':'']">溶栓</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_REPCI==='1'?'box-active':'']" @click="reverse('IS_REPCI')"><text class="checkbox-text" :class="[resData.IS_REPCI==='1'?'box-text-active':'']">补救PCI</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_EMRADIOGRAPHY==='1'?'box-active':'']" @click="reverse('IS_EMRADIOGRAPHY')"><text class="checkbox-text" :class="[resData.IS_EMRADIOGRAPHY==='1'?'box-text-active':'']">急诊仅造影</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_ELPCI==='1'?'box-active':'']" @click="reverse('IS_ELPCI')"><text class="checkbox-text" :class="[resData.IS_ELPCI==='1'?'box-text-active':'']">择期PCI</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"><text class="box-text"></text></div>
                            <div class="checkbox" :class="[resData.IS_TPCI==='1'?'box-active':'']" @click="reverse('IS_TPCI')"><text class="checkbox-text" :class="[resData.IS_TPCI==='1'?'box-text-active':'']">转运PCI</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_ELRADIOGRAPHY==='1'?'box-active':'']" @click="reverse('IS_ELRADIOGRAPHY')"><text class="checkbox-text" :class="[resData.IS_ELRADIOGRAPHY==='1'?'box-text-active':'']">择期仅造影</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_CABG==='1'?'box-active':'']" @click="reverse('IS_CABG')"><text class="checkbox-text" :class="[resData.IS_CABG==='1'?'box-text-active':'']">CABG</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_NOREPERFUSION==='1'?'box-active':'']" @click="reverse('IS_NOREPERFUSION')"><text class="checkbox-text" :class="[resData.IS_NOREPERFUSION==='1'?'box-text-active':'']">无再灌注措施</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_REPOTHER==='1'?'box-active':'']" @click="reverse('IS_REPOTHER')"><text class="checkbox-text" :class="[resData.IS_REPOTHER==='1'?'box-text-active':'']">其它</text></div>
                        </div>
                    </div>
                    <div v-if="resData.CP_DIAGNOSIS_CODE!=='5'&&resData.CP_DIAGNOSIS_CODE!=='6'">
                        <div class="box">
                            <div class="title-max"><text class="box-text">TIMI等级(手术前):</text></div>
                            <div class="checkbox" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='0'?'box-active':'']" @click="ISChecked('PREOPERATIVE_TIMI_LEVEL','0')"><text class="checkbox-text" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='0'?'box-text-active':'']">0</text></div>
                            <div class="checkbox mf-10" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='1'?'box-active':'']" @click="ISChecked('PREOPERATIVE_TIMI_LEVEL','1')"><text class="checkbox-text" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='1'?'box-text-active':'']">1</text></div>
                            <div class="checkbox mf-10" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='2'?'box-active':'']" @click="ISChecked('PREOPERATIVE_TIMI_LEVEL','2')"><text class="checkbox-text" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='2'?'box-text-active':'']">2</text></div>
                            <div class="checkbox mf-10" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='3'?'box-active':'']" @click="ISChecked('PREOPERATIVE_TIMI_LEVEL','3')"><text class="checkbox-text" :class="[resData.PREOPERATIVE_TIMI_LEVEL==='3'?'box-text-active':'']">3</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"><text class="box-text">TIMI等级(手术后):</text></div>
                            <div class="checkbox" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='0'?'box-active':'']" @click="ISChecked('POSTOPERATIVE_TIMI_LEVEL','0')"><text class="checkbox-text" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='0'?'box-text-active':'']">0</text></div>
                            <div class="checkbox mf-10" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='1'?'box-active':'']" @click="ISChecked('POSTOPERATIVE_TIMI_LEVEL','1')"><text class="checkbox-text" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='1'?'box-text-active':'']">1</text></div>
                            <div class="checkbox mf-10" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='2'?'box-active':'']" @click="ISChecked('POSTOPERATIVE_TIMI_LEVEL','2')"><text class="checkbox-text" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='2'?'box-text-active':'']">2</text></div>
                            <div class="checkbox mf-10" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='3'?'box-active':'']" @click="ISChecked('POSTOPERATIVE_TIMI_LEVEL','3')"><text class="checkbox-text" :class="[resData.POSTOPERATIVE_TIMI_LEVEL==='3'?'box-text-active':'']">3</text></div>
                        </div>
                    </div>
                    <div class="box" v-if="resData.NSTEMI_TYPE==='3'||resData.NSTEMI_TYPE==='4'||resData.NSTEMI_TYPE==='6'">
                        <div class="line">
                            <div class="title-max"><text class="box-text">实际介入治疗时间:</text></div>
                            <div class="input" @click="getTime('ACTUAL_INTERVENTION_DATE')">
                                <text class="input-text">{{resData.ACTUAL_INTERVENTION_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line"></div>
                    </div>
                    <div class="box" v-if="resData.IS_REPCI==='1'||resData.IS_ELPCI==='1'||resData.IS_TPCI==='1'">
                        <div class="line">
                            <div class="title-max"><text class="box-text">介入手术开始时间:</text></div>
                            <div class="input" @click="getTime('START_INTERVENTION_DATE')">
                                <text class="input-text">{{resData.START_INTERVENTION_DATE | filterTime | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">介入手术结束时间:</text></div>
                            <div class="input" @click="getTime('END_INTERVENTION_DATE')">
                                <text class="input-text">{{resData.END_INTERVENTION_DATE | filterTime | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box" v-if="resData.NSTEMI_TYPE==='5'||resData.IS_REPCI==='1'||resData.IS_ELPCI==='1'||resData.IS_TPCI==='1'||resData.IS_ELRADIOGRAPHY==='1'">
                        <div class="line">
                            <div class="title-max"><text class="box-text">造影开始时间:</text></div>
                            <div class="input" @click="getTime('START_RADIOGRAPHY_TIME')">
                                <text class="input-text">{{resData.START_RADIOGRAPHY_TIME | filterTime | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line"></div>
                    </div>

                </div>
            </cell>
            <cell>
                <div class="main-banner" v-if="resData.CP_DIAGNOSIS_CODE==='2'&&resData.IS_NOREPERFUSION==='1'"><text class="main-banner-text">无再灌注措施</text></div>
                <div class="content" >
                    <div v-if="resData.CP_DIAGNOSIS_CODE==='2'&&resData.IS_NOREPERFUSION==='1'">
                        <div class="box">
                            <div class="checkbox-max" :class="[resData.PERFUSION_MEASURE_CODE==='1'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "1",resData.PERFUSION_MEASURE_DESC="无明确胸痛,生命体征平稳"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='1'?'box-text-active':'']">无明确胸痛,生命体征平稳</text></div>
                            <div class="checkbox-max mf-10" :class="[resData.PERFUSION_MEASURE_CODE==='2'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "2",resData.PERFUSION_MEASURE_DESC="错过再灌注时间"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='2'?'box-text-active':'']">错过再灌注时间</text></div>
                            <div class="checkbox mf-10" :class="[resData.PERFUSION_MEASURE_CODE==='3'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "3",resData.PERFUSION_MEASURE_DESC="出血"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='3'?'box-text-active':'']">出血</text></div>
                            <div class="checkbox-max mf-10" :class="[resData.PERFUSION_MEASURE_CODE==='4'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "4",resData.PERFUSION_MEASURE_DESC="严重肝肾功能不全"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='4'?'box-text-active':'']">严重肝肾功能不全</text></div>
                        </div>
                        <div class="box">
                            <div class="checkbox-max" :class="[resData.PERFUSION_MEASURE_CODE==='5'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "5",resData.PERFUSION_MEASURE_DESC="经济原因"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='5'?'box-text-active':'']">经济原因</text></div>
                            <div class="checkbox-max mf-10" :class="[resData.PERFUSION_MEASURE_CODE==='6'?'box-active':'']" @click='resData.PERFUSION_MEASURE_CODE = "6",resData.PERFUSION_MEASURE_DESC="家属放弃"'><text class="checkbox-text" :class="[resData.PERFUSION_MEASURE_CODE==='6'?'box-text-active':'']">家属放弃</text></div>
                        </div>
                    </div>
                    <div class="box-textarea" v-if="resData.IS_NOREPERFUSION==='1' || resData.IS_REPOTHER==='1'">
                        <div class="line-textarea">
                            <div class="title-textarea"><text class="box-text">其他原因:</text></div>
                            <input type="text" class="textarea" v-model="resData.PERFUSION_MEASURE_OTHER"></input>
                        </div>
                    </div>
                </div>

            </cell>
            <!-- 急诊 -->
            <cell v-if="resData.CP_DIAGNOSIS_CODE==='5'||resData.CP_DIAGNOSIS_CODE==='6'">
                <div class="main-banner"><text class="main-banner-text">急诊</text></div>
                <div class="content">
                    <div class="box">
                        <div class="checkbox" :class="[resData.IS_ECT==='1'?'box-active':'']" @click="reverse('IS_ECT')"><text class="checkbox-text" :class="[resData.IS_ECT==='1'?'box-text-active':'']">急诊CT</text></div>
                        <div class="checkbox mf-10" v-if="resData.CP_DIAGNOSIS_CODE==='5'" :class="[resData.IS_CDU==='1'?'box-active':'']" @click="reverse('IS_CDU')"><text class="checkbox-text" :class="[resData.IS_CDU==='1'?'box-text-active':'']">彩超</text></div>
                        <div class="checkbox mf-10" v-if="resData.CP_DIAGNOSIS_CODE==='5'" :class="[resData.IS_MRI==='1'?'box-active':'']" @click="reverse('IS_MRI')"><text class="checkbox-text" :class="[resData.IS_MRI==='1'?'box-text-active':'']">MRI</text></div>
                    </div>
                </div>
            </cell>
            <!-- 急诊CT -->
            <cell v-if="resData.IS_ECT==='1'">
                <div class="content">
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">通知CT室时间:</text></div>
                            <div class="input" @click="getTime('CT_NOTICE_DATE')">
                                <text class="input-text">{{resData.CT_NOTICE_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">CT室完成准备时间:</text></div>
                            <div class="input" @click="getTime('CT_FINISH_DATE')">
                                <text class="input-text">{{resData.CT_FINISH_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">CT人员到达时间:</text></div>
                            <div class="input" @click="getTime('USER_ARRIVE_DATE')">
                                <text class="input-text">{{resData.USER_ARRIVE_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">患者到达CT室时间:</text></div>
                            <div class="input" @click="getTime('CT_ARRIVE_DATE')">
                                <text class="input-text">{{resData.CT_ARRIVE_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">CT扫描开始时间:</text></div>
                            <div class="input" @click="getTime('CT_SCAN_DATE')">
                                <text class="input-text">{{resData.CT_SCAN_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">CT报告时间:</text></div>
                            <div class="input" @click="getTime('CT_REPORT_DATE')">
                                <text class="input-text">{{resData.CT_REPORT_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                </div>
            </cell>
            <!-- 彩   超 -->
            <cell v-if="resData.IS_CDU==='1'">
                <div class="content">
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">通知彩超室时间:</text></div>
                            <div class="input" @click="getTime('NOTICE_CDU_TIME')">
                                <text class="input-text">{{resData.NOTICE_CDU_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">患者到达彩超室:</text></div>
                            <div class="input" @click="getTime('CDU_ARRIVE_DATE')">
                                <text class="input-text">{{resData.CDU_ARRIVE_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">彩超检查时间:</text></div>
                            <div class="input" @click="getTime('CDU_CHECK_DATE')">
                                <text class="input-text">{{resData.CDU_CHECK_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">检查出结果时间:</text></div>
                            <div class="input" @click="getTime('CHECK_RESULT_DATE')">
                                <text class="input-text">{{resData.CHECK_RESULT_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                </div>
            </cell>
            <!-- CABG -->
            <cell >
                <div class="main-banner" v-if="resData.IS_CABG==='1'"><text class="main-banner-text">CABG</text></div>
                <div class="content">
                    <div v-if="resData.IS_CABG==='1'">
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">决定CABG时间:</text></div>     
                                <div class="input" @click="getTime('DECISION_CABG_TIME')">
                                    <text class="input-text">{{resData.DECISION_CABG_TIME | filterTime}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                       
                            </div>
                            <div class="line"> 
                                <div class="title-max"><text class="box-text">开始CABG时间:</text></div>     
                                <div class="input"  @click="getTime('START_CABG_TIME')">
                                    <text class="input-text">{{resData.START_CABG_TIME | filterTime}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                       
                            </div>
                        </div>
                        <div class="box">                            
                            <div class="line">                    
                                <div class="title-max"><text class="box-text">CABG结束时间:</text></div>     
                                <div class="input" @click="getTime('END_CABG_TIME')">
                                    <text class="input-text">{{resData.END_CABG_TIME | filterTime}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                       
                            </div>  
                            <div class="line"></div>                    
                        </div>  
                    </div>
                    <div class="box-textarea" v-if="resData.IS_REPOTHER==='1'">
                        <div class="line-textarea">
                            <div class="title-textarea"><text class="box-text">其它治疗措施:</text></div>
                            <input type="text" class="textarea" v-model="resData.OTHER_TREATMENT_MEASURE"></input>
                        </div>
                    </div>             
                </div>
            </cell>
            <!-- 治疗信息 -->
            <cell v-if="resData.CP_DIAGNOSIS_CODE==='5'">
                <div class="main-banner"><text class="main-banner-text">治疗信息</text></div>
                <div class="content">
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">心内科会诊时间:</text></div>     
                            <div class="input" @click="getTime('IMCD_CONSULTATION_DATE')">
                                <text class="input-text">{{resData.IMCD_CONSULTATION_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                       
                        </div>
                        <div class="line"></div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">通知心脏外科会诊:</text></div>     
                            <div class="input"  @click="getTime('IMCD_NOTICE_DATE')">
                                <text class="input-text">{{resData.IMCD_NOTICE_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                      
                        </div>
                        <div class="line"> 
                            <div class="title-max"><text class="box-text">心脏外科会诊时间:</text></div>     
                            <div class="input"  @click="getTime('ECC_CONSULTATION_DATE')">
                                <text class="input-text">{{resData.ECC_CONSULTATION_DATE | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                       
                        </div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">夹层类型:</text></div>   
                        <div class="checkbox" :class="[resData.INTERLAYER_TYPE==='1'?'box-active':'']" @click="ISChecked('INTERLAYER_TYPE','1')"><text class="checkbox-text" :class="[resData.INTERLAYER_TYPE==='1'?'box-text-active':'']">A型</text></div>
                        <div class="checkbox mf-10" :class="[resData.INTERLAYER_TYPE==='2'?'box-active':'']" @click="ISChecked('INTERLAYER_TYPE','2')"><text class="checkbox-text" :class="[resData.INTERLAYER_TYPE==='2'?'box-text-active':'']">B型</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">治疗策略:</text></div>   
                        <div class="checkbox" :class="[resData.TREATMENT_STRATEGY_CODE==='1'?'box-active':'']" @click="ISChecked('TREATMENT_STRATEGY_CODE','1')"><text class="checkbox-text" :class="[resData.TREATMENT_STRATEGY_CODE==='1'?'box-text-active':'']">紧急介入治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.TREATMENT_STRATEGY_CODE==='2'?'box-active':'']" @click="ISChecked('TREATMENT_STRATEGY_CODE','2')"><text class="checkbox-text" :class="[resData.TREATMENT_STRATEGY_CODE==='2'?'box-text-active':'']">择期介入治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.TREATMENT_STRATEGY_CODE==='3'?'box-active':'']" @click="ISChecked('TREATMENT_STRATEGY_CODE','3')"><text class="checkbox-text" :class="[resData.TREATMENT_STRATEGY_CODE==='3'?'box-text-active':'']">保守治疗</text></div>
                        <div class="checkbox mf-10" :class="[resData.TREATMENT_STRATEGY_CODE==='4'?'box-active':'']" @click="ISChecked('TREATMENT_STRATEGY_CODE','4')"><text class="checkbox-text" :class="[resData.TREATMENT_STRATEGY_CODE==='4'?'box-text-active':'']">外科手术</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text"></text></div>
                        <div class="checkbox-auto" :class="[resData.TREATMENT_STRATEGY_CODE==='5'?'box-active':'']" @click="ISChecked('TREATMENT_STRATEGY_CODE','5')"><text class="checkbox-text" :class="[resData.TREATMENT_STRATEGY_CODE==='5'?'box-text-active':'']">其它（介入失败转为手术）</text></div>
                    </div>
                </div>
            </cell>
            <!-- 介入治疗 -->
            <cell v-if="resData.TREATMENT_STRATEGY_CODE==='1' || resData.TREATMENT_STRATEGY_CODE==='2'">
                <div class="main-banner"><text class="main-banner-text">介入治疗</text></div>
                <div class="content">
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">进入CCU时间:</text></div>     
                            <div class="input"  @click="getTime('CCU_INTO_DATE')">
                                <text class="input-text">{{resData.CCU_INTO_DATE}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                      
                        </div>
                        <div class="line"> 
                            <div class="title-max"><text class="box-text">开始介入治疗时间:</text></div>     
                            <div class="input"  @click="getTime('START_TREATE_DATE')">
                                <text class="input-text">{{resData.START_TREATE_DATE}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                       
                        </div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">支架释放时间:</text></div>     
                            <div class="input"  @click="getTime('STAND_RID_DATE')">
                                <text class="input-text">{{resData.STAND_RID_DATE}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>                      
                        </div>
                        <div class="line"></div>
                    </div>
                </div>
            </cell>
            <!-- 外科手术 -->
            <cell >
                <div class="main-banner" v-if="resData.TREATMENT_STRATEGY_CODE==='4'"><text class="main-banner-text">外科手术</text></div>
                <div class="main-banner" v-if="resData.CP_DIAGNOSIS_CODE==='6'"><text class="main-banner-text">治疗信息</text></div>
                <div class="content">
                    <div v-if="resData.TREATMENT_STRATEGY_CODE==='4'">
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">决定手术时间:</text></div>     
                                <div class="input"  @click="getTime('DECISION_OPERATION_TIME')">
                                    <text class="input-text">{{resData.DECISION_OPERATION_TIME}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                      
                            </div>
                            <div class="line"> 
                                <div class="title-auto"><text class="box-text">手术开始知情同意时间:</text></div>     
                                <div class="input"  @click="getTime('START_OPERATE_AGREE_TIME')">
                                    <text class="input-text">{{resData.START_OPERATE_AGREE_TIME}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                       
                            </div>
                        </div>
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">签署手术同意书:</text></div>     
                                <div class="input"  @click="getTime('SIGN_OPERATE_AGREE_TIME')">
                                    <text class="input-text">{{resData.SIGN_OPERATE_AGREE_TIME}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                      
                            </div>
                            <div class="line">
                                <div class="title-max"><text class="box-text">手术开始时间:</text></div>     
                                <div class="input"  @click="getTime('START_OPERATION_TIME')">
                                    <text class="input-text">{{resData.START_OPERATION_TIME}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>
                            </div>
                        </div>
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">手术结束时间:</text></div>     
                                <div class="input"  @click="getTime('END_OPERATION_TIME')">
                                    <text class="input-text">{{resData.END_OPERATION_TIME}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>                      
                            </div>
                            <div class="line"></div>
                        </div>
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">手术结果:</text></div>     
                                <div class="input">
                                    <input type="text" class="input-text" v-model="resData.OPERATION_RESULT"></input>
                                </div>                      
                            </div>
                            <div class="line"></div>
                        </div>
                    </div>
                    <div v-if="resData.CP_DIAGNOSIS_CODE==='6'">
                        <div class="box">
                            <div class="title-max"><text class="box-text">危险分层:</text></div>   
                            <div class="checkbox" :class="[resData.RISK_LAMINATION==='1'?'box-active':'']" @click="ISChecked('RISK_LAMINATION','1')"><text class="checkbox-text" :class="[resData.RISK_LAMINATION==='1'?'box-text-active':'']">极高危</text></div>
                            <div class="checkbox mf-10" :class="[resData.RISK_LAMINATION==='2'?'box-active':'']" @click="ISChecked('RISK_LAMINATION','2')"><text class="checkbox-text" :class="[resData.RISK_LAMINATION==='2'?'box-text-active':'']">高危</text></div>
                            <div class="checkbox mf-10" :class="[resData.RISK_LAMINATION==='3'?'box-active':'']" @click="ISChecked('RISK_LAMINATION','3')"><text class="checkbox-text" :class="[resData.RISK_LAMINATION==='3'?'box-text-active':'']">中危</text></div>
                            <div class="checkbox mf-10" :class="[resData.RISK_LAMINATION==='4'?'box-active':'']" @click="ISChecked('RISK_LAMINATION','4')"><text class="checkbox-text" :class="[resData.RISK_LAMINATION==='4'?'box-text-active':'']">低危</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"><text class="box-text">溶栓:</text></div>   
                            <div class="checkbox" :class="[resData.IS_THROMBOLYSIS_DT==='1'?'box-active':'']" @click="resData.IS_THROMBOLYSIS_DT='1'"><text class="checkbox-text" :class="[resData.IS_THROMBOLYSIS_DT==='1'?'box-text-active':'']">是</text></div>
                            <div class="checkbox mf-10" :class="[resData.IS_THROMBOLYSIS_DT==='0'?'box-active':'']" @click="resData.IS_THROMBOLYSIS_DT='0'"><text class="checkbox-text" :class="[resData.IS_THROMBOLYSIS_DT==='0'?'box-text-active':'']">否</text></div>
                        </div>
                        <div class="box">
                            <div class="line">
                                <div class="title-max"><text class="box-text">开始抗凝治疗时间:</text></div> 
                                <div class="input"  @click="getTime('ANTI_TREATMENT_DATE')">
                                    <text class="input-text">{{resData.ANTI_TREATMENT_DATE}}</text>
                                    <image :src="imgUrl" class="img-unit"></image>
                                </div>
                            </div>
                            <div class="line"></div>
                        </div>
                    </div>
                </div>
            </cell>
            <!-- 院内溶栓治疗 -->
            <cell v-if="resData.IS_THROMBOLYSIS_DT==='1'">
                <div class="main-banner"><text class="main-banner-text">院内溶栓治疗</text></div>
                <div class="content">
                    <div class="box">
                        <div class="title-max"><text class="box-text">溶栓诊疗单位:</text></div> 
                        <div class="checkbox" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='1'?'box-active':'']" @click="ISChecked('DIAGNOSIS_UNIT_CODE_DT','1')"><text class="checkbox-text" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='1'?'box-text-active':'']">其它医院</text></div>
                        <div class="checkbox mf-10" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='2'?'box-active':'']" @click="ISChecked('DIAGNOSIS_UNIT_CODE_DT','2')"><text class="checkbox-text" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='2'?'box-text-active':'']">救护车</text></div>
                        <div class="checkbox mf-10" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='3'?'box-active':'']" @click="ISChecked('DIAGNOSIS_UNIT_CODE_DT','3')"><text class="checkbox-text" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='3'?'box-text-active':'']">本院急诊科</text></div>
                        <div class="checkbox mf-10" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='4'?'box-active':'']" @click="ISChecked('DIAGNOSIS_UNIT_CODE_DT','4')"><text class="checkbox-text" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='4'?'box-text-active':'']">本院心内科</text></div>
                        <div class="checkbox mf-10" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='5'?'box-active':'']" @click="ISChecked('DIAGNOSIS_UNIT_CODE_DT','5')"><text class="checkbox-text" :class="[resData.DIAGNOSIS_UNIT_CODE_DT==='5'?'box-text-active':'']">其他科室</text></div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">溶栓开始知情同意:</text></div>
                            <div class="input"  @click="getTime('THROM_START_AGREE_TIME')">
                                <text class="input-text">{{resData.THROM_START_AGREE_TIME}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">溶栓签署知情同意:</text></div>
                            <div class="input"  @click="getTime('THROM_SIGN_AGREE_TIME')">
                                <text class="input-text">{{resData.THROM_SIGN_AGREE_TIME}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box">
                        <div class="line">
                            <div class="title-max"><text class="box-text">溶栓开始时间:</text></div>
                            <div class="input"  @click="getTime('THROM_START_TIME_DT')">
                                <text class="input-text">{{resData.THROM_START_TIME_DT}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">溶栓结束时间:</text></div>
                            <div class="input"  @click="getTime('THROM_END_TIME_DT')">
                                <text class="input-text">{{resData.THROM_END_TIME_DT}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">溶栓药物:</text></div> 
                        <div class="checkbox" :class="[resData.THROM_DRUG_TYPE_DT==='1'?'box-active':'']" @click="ISChecked('THROM_DRUG_TYPE_DT','1')"><text class="checkbox-text" :class="[resData.THROM_DRUG_TYPE_DT==='1'?'box-text-active':'']">第一代</text></div>
                        <div class="checkbox mf-10" :class="[resData.THROM_DRUG_TYPE_DT==='2'?'box-active':'']" @click="ISChecked('THROM_DRUG_TYPE_DT','2')"><text class="checkbox-text" :class="[resData.THROM_DRUG_TYPE_DT==='2'?'box-text-active':'']">第二代</text></div>
                        <div class="checkbox mf-10" :class="[resData.THROM_DRUG_TYPE_DT==='3'?'box-active':'']" @click="ISChecked('THROM_DRUG_TYPE_DT','3')"><text class="checkbox-text" :class="[resData.THROM_DRUG_TYPE_DT==='3'?'box-text-active':'']">第三代</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">溶栓剂量:</text></div> 
                        <div class="checkbox" :class="[resData.THROM_DRUG_CODE_DT==='1'?'box-active':'']" @click="ISChecked('THROM_DRUG_CODE_DT','1')"><text class="checkbox-text" :class="[resData.THROM_DRUG_CODE_DT==='1'?'box-text-active':'']">全量</text></div>
                        <div class="checkbox mf-10" :class="[resData.THROM_DRUG_CODE_DT==='2'?'box-active':'']" @click="ISChecked('THROM_DRUG_CODE_DT','2')"><text class="checkbox-text" :class="[resData.THROM_DRUG_CODE_DT==='2'?'box-text-active':'']">半量</text></div>
                    </div>
                    <div class="box">
                        <div class="title-max"><text class="box-text">溶栓再通:</text></div> 
                        <div class="checkbox" :class="[resData.IS_REPATENCY_DT==='1'?'box-active':'']" @click="ISChecked('IS_REPATENCY_DT','1')"><text class="checkbox-text" :class="[resData.IS_REPATENCY_DT==='1'?'box-text-active':'']">是</text></div>
                        <div class="checkbox mf-10" :class="[resData.IS_REPATENCY_DT==='0'?'box-active':'']" @click="ISChecked('IS_REPATENCY_DT','0')"><text class="checkbox-text" :class="[resData.IS_REPATENCY_DT==='0'?'box-text-active':'']">否</text></div>
                    </div>
                    <div class="box-textarea">
                        <div class="line-textarea">
                            <div class="title-max"><text class="box-text">溶栓结果描述:</text></div>
                            <input type="text" class="textarea" v-model="resData.THROM_RESULT_DESC_DT"></input>
                        </div>
                    </div> 
                </div>
            </cell>
            <!-- 急诊(紧急)PCI -->
            <cell v-if="resData.NSTEMI_TYPE==='1' || resData.NSTEMI_TYPE==='2'||resData.IS_EMPCI==='1'||resData.IS_EMRADIOGRAPHY==='1'">
                <div class="main-banner"><text class="main-banner-text">急诊(紧急)PCI</text></div>
                <div class="content">                                                             
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">决定医生:</text></div>
                            <div class="input">
                                <input type="text" class="input-text" v-model="resData.DOCTOR_NAME"></input>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">介入人员:</text></div>
                            <div class="input">
                                <input type="text" class="input-text" v-model="resData.INTERVENTION_PERSON"></input>
                            </div>
                        </div>
                    </div>                                                             
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">决定介入手术时间:</text></div>
                            <div class="input" @click="getTime('DECISION_OPERATION_TIME')">
                                <text class="input-text">{{resData.DECISION_OPERATION_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">启动导管室时间:</text></div>
                            <div class="input" @click="getTime('START_CONDUIT_TIME')">
                                <text class="input-text">{{resData.START_CONDUIT_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">开始知情同意时间:</text></div>
                            <div class="input" @click="getTime('START_AGREE_TIME')">
                                <text class="input-text">{{resData.START_AGREE_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">签署知情同意时间:</text></div>
                            <div class="input" @click="getTime('SIGN_AGREE_TIME')">
                                <text class="input-text">{{resData.SIGN_AGREE_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">导管室激活时间:</text></div>
                            <div class="input" @click="getTime('ACTIVATE_CONDUIT_TIME')">
                                <text class="input-text">{{resData.ACTIVATE_CONDUIT_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">患者到达导管室时间:</text></div>
                            <div class="input" @click="getTime('ARRIVE_CONDUIT_TIME')">
                                <text class="input-text">{{resData.ARRIVE_CONDUIT_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">开始穿刺时间:</text></div>
                            <div class="input" @click="getTime('START_PUNCTURE_TIME')">
                                <text class="input-text">{{resData.START_PUNCTURE_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">穿刺成功时间:</text></div>
                            <div class="input" @click="getTime('SUCCESS_PUNCTURE_TIME')">
                                <text class="input-text">{{resData.SUCCESS_PUNCTURE_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">造影开始时间:</text></div>
                            <div class="input" @click="getTime('START_RADIOGRAPHY_TIME')">
                                <text class="input-text">{{resData.START_RADIOGRAPHY_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">造影结束时间:</text></div>
                            <div class="input" @click="getTime('END_RADIOGRAPHY_TIME')">
                                <text class="input-text">{{resData.END_RADIOGRAPHY_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div> 
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">球囊扩张时间:</text></div>
                            <div class="input" @click="getTime('BALLOON_EXPANSION_TIME')">
                                <text class="input-text">{{resData.BALLOON_EXPANSION_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                        <div class="line">
                            <div class="title-max"><text class="box-text">手术结束时间:</text></div>
                            <div class="input" @click="getTime('END_OPERATION_TIME')">
                                <text class="input-text">{{resData.END_OPERATION_TIME | filterTime}}</text>
                                <image :src="imgUrl" class="img-unit"></image>
                            </div>
                        </div>
                    </div>
                    <div class="box">                            
                        <div class="line">                    
                            <div class="title-max"><text class="box-text">D to B时间:</text></div>
                            <div class="input">
                                <text class="input-text">{{resData.DTWOB_TIME}}</text>
                                <text class="input-unit">min</text>
                            </div>
                        </div>
                        <div class="line"></div>                    
                    </div>
                    <div class="box" v-if="resData.IS_EMPCI==='1'||resData.IS_EMRADIOGRAPHY==='1'">
                        <div class="title-max"><text class="box-text">是否延误:</text></div>
                        <div class="checkbox" :class="[resData.IS_DELAY==='1'?'box-active':'']" @click="resData.IS_DELAY='1'"><text class="checkbox-text" :class="[resData.IS_DELAY==='1'?'box-text-active':'']">是</text></div>
				        <div class="checkbox mf-10" :class="[resData.IS_DELAY==='0'?'box-active':'']" @click="resData.IS_DELAY='0'"><text class="checkbox-text" :class="[resData.IS_DELAY==='0'?'box-text-active':'']">否</text></div>
                    </div>
                    <div v-if='resData.IS_DELAY==="1"'>
                        <div class="box">
                            <div class="title-max"><text class="box-text">延迟原因:</text></div> 
                            <div class="checkbox-auto" :class="[DELAY_REASON['01']==='1'?'box-active':'']" @click="delayReason('01')"><text class="checkbox-text" :class="[DELAY_REASON['01']==='1'?'box-text-active':'']">症状不明显延误诊断</text></div>
                            <div class="checkbox mf-10" :class="[DELAY_REASON['02']==='1'?'box-active':'']" @click="delayReason('02')"><text class="checkbox-text" :class="[DELAY_REASON['02']==='1'?'box-text-active':'']">家属未到场</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['03']==='1'?'box-active':'']" @click="delayReason('03')"><text class="checkbox-text" :class="[DELAY_REASON['03']==='1'?'box-text-active':'']">医生决策延误</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['05']==='1'?'box-active':'']" @click="delayReason('05')"><text class="checkbox-text" :class="[DELAY_REASON['05']==='1'?'box-text-active':'']">急诊科处理时间长</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"></div> 
                            <div class="checkbox-auto" :class="[DELAY_REASON['04']==='1'?'box-active':'']" @click="delayReason('04')"><text class="checkbox-text" :class="[DELAY_REASON['04']==='1'?'box-text-active':'']">排队挂号、缴费、办住院时间长</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['06']==='1'?'box-active':'']" @click="delayReason('06')"><text class="checkbox-text" :class="[DELAY_REASON['06']==='1'?'box-text-active':'']">手术期间出现并发症</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['07']==='1'?'box-active':'']" @click="delayReason('07')"><text class="checkbox-text" :class="[DELAY_REASON['07']==='1'?'box-text-active':'']">超过再灌注时间窗</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"></div> 
                            <div class="checkbox-auto" :class="[DELAY_REASON['08']==='1'?'box-active':'']" @click="delayReason('08')"><text class="checkbox-text" :class="[DELAY_REASON['08']==='1'?'box-text-active':'']">未实施绕行急诊方案</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['09']==='1'?'box-active':'']" @click="delayReason('09')"><text class="checkbox-text" :class="[DELAY_REASON['09']==='1'?'box-text-active':'']">导管室人员未到位</text></div>
                            <div class="checkbox mf-10" :class="[DELAY_REASON['10']==='1'?'box-active':'']" @click="delayReason('10')"><text class="checkbox-text" :class="[DELAY_REASON['10']==='1'?'box-text-active':'']">药物缺乏</text></div>
                            <div class="checkbox mf-10" :class="[DELAY_REASON['12']==='1'?'box-active':'']" @click="delayReason('12')"><text class="checkbox-text" :class="[DELAY_REASON['12']==='1'?'box-text-active':'']">病情不稳定</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"></div> 
                            <div class="checkbox-auto" :class="[DELAY_REASON['11']==='1'?'box-active':'']" @click="delayReason('11')"><text class="checkbox-text" :class="[DELAY_REASON['11']==='1'?'box-text-active':'']">知情同意时间过长</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['13']==='1'?'box-active':'']" @click="delayReason('13')"><text class="checkbox-text" :class="[DELAY_REASON['13']==='1'?'box-text-active':'']">绕行急诊科但未直接入导管室</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['15']==='1'?'box-active':'']" @click="delayReason('15')"><text class="checkbox-text" :class="[DELAY_REASON['15']==='1'?'box-text-active':'']">缺少担架员转运时间长</text></div>
                        </div>
                        <div class="box">
                            <div class="title-max"></div> 
                            <div class="checkbox" :class="[DELAY_REASON['14']==='1'?'box-active':'']" @click="delayReason('14')"><text class="checkbox-text" :class="[DELAY_REASON['14']==='1'?'box-text-active':'']">导管室占台</text></div>
                            <div class="checkbox mf-10" :class="[DELAY_REASON['16']==='1'?'box-active':'']" @click="delayReason('16')"><text class="checkbox-text" :class="[DELAY_REASON['16']==='1'?'box-text-active':'']">经费问题</text></div>
                            <div class="checkbox-auto mf-10" :class="[DELAY_REASON['17']==='1'?'box-active':'']" @click="delayReason('17')"><text class="checkbox-text" :class="[DELAY_REASON['17']==='1'?'box-text-active':'']">心内科会诊时间长</text></div>
                            <div class="checkbox mf-10" :class="[DELAY_REASON['18']==='1'?'box-active':'']" @click="delayReason('18')"><text class="checkbox-text" :class="[DELAY_REASON['18']==='1'?'box-text-active':'']">其它</text></div>
                        </div>
                    </div>
                </div>
            </cell>
        </list>       
    </div>
</template>
<script>
    import WeexNativeModule from "../../common/WeexNativeModule"
    import DateUtil from "../../common/util/DateUtil"
    import StringUtils from "../../common/util/StringUtils"
    import JsonFilter from "../../common/util/JsonFilter"
    import ACApi from "../../common/http/ACApi"
    import Resource from "../../../dist/res/Resource"
    export default {
        name: 'EMNewMainEditInfo',
        data: function () {            
            return {
                titleleftimg:"title_cha_img.png",
                imgUrl: 'choose.png',
                ORDER_ID: '',
                resData: {
                    // 胸痛诊疗实体
                    REGISTER_ID:'',//患者登记编号
                    CP_DIAGNOSIS_CODE:'',//胸痛诊断
                    CP_DIAGNOSIS_NAME:'',//医生胸痛诊断名称
                    FIRST_TREATMENT_TIME:'',//院内心内科医生首诊时间
                    IS_EMPCI:'',//是否急诊PCI （选中传1，未选中传0）
                    IS_THROMBOLYSIS_DT:'',//是否溶栓 （选中传1，未选中传0）
                    IS_REPCI:'',//补救PCI
                    IS_EMRADIOGRAPHY:'',//急诊仅造影 （选中传1，未选中传0
                    IS_ELPCI:'',//是否择期PCI （选中传1，未选中传0
                    IS_ELRADIOGRAPHY:'',//是否择期仅造影 （选中传1，未选中传0
                    IS_CABG:'',//是否CABG （选中传1，未选中传0
                    IS_NOREPERFUSION:'',//是否无再灌注措施 （选中传1，未选中传0
                    IS_REPOTHER:'',//是否其他 （选中传1，未选中传0
                    OTHER_TREATMENT_MEASURE:'',//其他治疗措施
                    DOCTOR_NAME:'',//决定医生
                    INTERVENTION_PERSON:'',//介入人员
                    DECISION_OPERATION_TIME:'',//决定介入手术时间
                    START_CONDUIT_TIME:'',//启动导管室时间
                    START_AGREE_TIME:'',//开始知情同意时间
                    SIGN_AGREE_TIME:'',//签署知情同意时间
                    ACTIVATE_CONDUIT_TIME:'',//导管室激活时间
                    ARRIVE_CONDUIT_TIME:'',//患者到达导管室时间
                    START_PUNCTURE_TIME:'',//开始穿刺时间
                    START_RADIOGRAPHY_TIME:'',//造影开始时间
                    END_RADIOGRAPHY_TIME:'',//造影结束时间
                    AGAIN_SIGN_AGREE_TIME:'',//再次签署知情同意时间
                    BALLOON_EXPANSION_TIME:'',//球囊扩张时间
                    START_OPERATION_TIME:'',//手术开始时间
                    END_OPERATION_TIME:'',//手术结束时间
                    DTWOB_TIME:'',//D2B时间
                    IS_DELAY:'',//是否延误
                    DIAGNOSIS_UNIT_CODE_DT:'',//溶栓诊疗单位代码
                    THROM_START_TIME_DT:'',//溶栓开始时间
                    THROM_END_TIME_DT:'',//溶栓结束时间
                    THROM_DRUG_TYPE_DT:'',//溶栓药物和剂量类别代码
                    THROM_DRUG_CODE_DT:'',//溶栓药物和剂量代码  （有两个溶栓字段？）
                    IS_REPATENCY_DT:'',//溶栓再通
                    THROM_RESULT_DESC_DT:'',//溶栓结果描述
                    PREOPERATIVE_TIMI_LEVEL:'',//靶血管血流（TIMI）等级：手术前（传0 1 2 3，传0,1,2,3或空值）
                    POSTOPERATIVE_TIMI_LEVEL:'',//靶血管血流（TIMI）等级：手术后（传0 1 2 3，传0,1,2,3或空值）
                    DECISION_CABG_TIME:'',//决定CABG时间
                    START_CABG_TIME:'',//开启CABG时间
                    END_CABG_TIME:'',//CABG结束时间
                    PERFUSION_MEASURE_CODE:'',//无再灌注措施代码
                    PERFUSION_MEASURE_DESC:'',//无再灌注措施描述
                    START_INTERVENTION_DATE:'',//介入手术开始时间
                    END_INTERVENTION_DATE:'',//介入手术结束时间
                    DELAY_REASON:'',//延迟原因（见字典表，格式：01,03,05  用逗号隔开）
                    RISK_LAMINATION:'',//危险分层代码
                    SIGN_OPERATE_AGREE_TIME:'',//签署手术同意书
                    OPERATION_RESULT:'',//手术结果
                    STAND_RID_DATE:'',//支架释放时间
                    START_TREATE_DATE:'',//开始介入治疗时间
                    CCU_INTO_DATE:'',//进入CCU时间
                    TREATMENT_STRATEGY_CODE:'',//治疗策略
                    INTERLAYER_TYPE:'',//夹层类型
                    ECC_CONSULTATION_DATE:'',//心脏外科会诊时间
                    IMCD_NOTICE_DATE:'',//通知心脏外科会诊
                    IMCD_CONSULTATION_DATE:'',//心内科会诊时间
                    CHECK_RESULT_DATE:'',//检查出结果时间
                    CDU_CHECK_DATE:'',//彩超检查时间
                    CDU_ARRIVE_DATE:'',//患者到达彩超室
                    IS_CDU:'',//是否彩超
                    CT_REPORT_DATE:'',//CT报告时间
                    CT_SCAN_DATE:'',//CT扫描开始时间
                    CT_ARRIVE_DATE:'',//患者到达CT室时间
                    USER_ARRIVE_DATE:'',//CT人员到达时间
                    CT_FINISH_DATE:'',//CT室完成时间
                    CT_NOTICE_DATE:'',//通知CT室时间
                    IS_ECT:'',//是否急诊CT
                    ANTI_TREATMENT_DATE:'',//开始抗凝治疗时间
                    NSTEMI_TYPE:'',//NSTEMI 类型（1 紧急介入治疗，2紧急仅造影 3 24H内介入治疗 4 72H内介入治疗 5 早期仅造影 6 择期介入治疗 7 保守治疗，传1,2,3,4,5,6,7或空值）
                    THROM_CHECK:'',//溶栓核查（1 合适 0 不合适，传1,0或空值）
                    INTENSIFY_STATINS_TREAT:'',//24小时强化他汀治疗（1是 2否，传1,2或空值）
                    RECEPTOR_RETARDANT_USING:'',//ß受体阻滞剂使用（1是 2否，传1,2或空值）
                    NOTICE_CDU_TIME:'',//通知彩超室时间
                    THROM_START_AGREE_TIME:'',//溶栓开始知情同意时间
                    THROM_SIGN_AGREE_TIME:'',//溶栓签署知情同意时间
                    TIME_INTERVAL:'',//进入医院到造影开始时间
                    START_OPERATE_AGREE_TIME:'',//手术开始知情同意时间
                    ACTUAL_INTERVENTION_DATE:'',//实际介入治疗时间
                    PERFUSION_MEASURE_OTHER:'',//其他原因
                    IS_MRI:'',//是否核磁共振
                    SUCCESS_PUNCTURE_TIME:'',//穿刺成功时间
                    IS_TPCI:'',//是否转运CPI
                    CREATE_ACCOUNT:'',//创建账户
                    CREATE_NAME:'',//创建人姓名
                    CREATE_DATE:'',//创建时间
                    UPDATE_NAME:'',//更新人姓名
                    UPDATE_DATE:'',//更新时间
                    IS_DIRECT:'',//是否直达（1 是 2否 空值表示未选择，传1,2或空值）
                },
                DELAY_REASON: {
                    '01': '',
                    '02': '',
                    '03': '',
                    '04': '',
                    '05': '',
                    '06': '',
                    '07': '',
                    '08': '',
                    '09': '',
                    '10': '',
                    '11': '',
                    '12': '',
                    '13': '',
                    '14': '',
                    '15': '',
                    '16': '',
                    '17': '',
                    '18': ''
                },
                canSave:true,
                ARRIVED_HOSPITAL_TIME:"",
            }                                                     
        },
        mounted:function () {
            let _this = this;
            WeexNativeModule.showProgressDialog('请稍等...');
            WeexNativeModule.getParam(function (res) {
                let param = JSON.parse(res.param);
//                WeexNativeModule.alert(param);
                if(param.isJustOpen){
                    _this.canSave = false;
                    let data = JSON.parse(param.data);
                    _this.DELAY_REASON = data.DELAY_REASON;
                    _this.resData.REGISTER_ID = data.REGISTER_ID;

                    _this.resData.CP_DIAGNOSIS_CODE= data.CP_DIAGNOSIS_CODE;
                    _this.resData.CP_DIAGNOSIS_NAME= data.CP_DIAGNOSIS_NAME;
                    _this.resData.FIRST_TREATMENT_TIME= data.FIRST_TREATMENT_TIME;
                    _this.resData.IS_EMPCI= data.IS_EMPCI;
                    _this.resData.IS_THROMBOLYSIS_DT= data.IS_THROMBOLYSIS_DT;
                    _this.resData.IS_REPCI= data.IS_REPCI;
                    _this.resData.IS_EMRADIOGRAPHY= data.IS_EMRADIOGRAPHY;
                    _this.resData.IS_ELPCI= data.IS_ELPCI;
                    _this.resData.IS_ELRADIOGRAPHY= data.IS_ELRADIOGRAPHY;
                    _this.resData.IS_CABG= data.IS_CABG;
                    _this.resData.IS_NOREPERFUSION= data.IS_NOREPERFUSION;
                    _this.resData.IS_REPOTHER= data.IS_REPOTHER;
                    _this.resData.OTHER_TREATMENT_MEASURE= data.OTHER_TREATMENT_MEASURE;
                    _this.resData.DOCTOR_NAME= data.DOCTOR_NAME;
                    _this.resData.INTERVENTION_PERSON= data.INTERVENTION_PERSON;
                    _this.resData.DECISION_OPERATION_TIME= data.DECISION_OPERATION_TIME;
                    _this.resData.START_CONDUIT_TIME= data.START_CONDUIT_TIME;
                    _this.resData.START_AGREE_TIME= data.START_AGREE_TIME;
                    _this.resData.SIGN_AGREE_TIME= data.SIGN_AGREE_TIME;
                    _this.resData.ACTIVATE_CONDUIT_TIME= data.ACTIVATE_CONDUIT_TIME;
                    _this.resData.ARRIVE_CONDUIT_TIME= data.ARRIVE_CONDUIT_TIME;
                    _this.resData.START_PUNCTURE_TIME= data.START_PUNCTURE_TIME;
                    _this.resData.START_RADIOGRAPHY_TIME= data.START_RADIOGRAPHY_TIME;
                    _this.resData.END_RADIOGRAPHY_TIME= data.END_RADIOGRAPHY_TIME;
                    _this.resData.AGAIN_SIGN_AGREE_TIME= data.AGAIN_SIGN_AGREE_TIME;
                    _this.resData.BALLOON_EXPANSION_TIME= data.BALLOON_EXPANSION_TIME;
                    _this.resData.START_OPERATION_TIME= data.START_OPERATION_TIME;
                    _this.resData.END_OPERATION_TIME= data.END_OPERATION_TIME;
                    _this.resData.DTWOB_TIME= data.DTWOB_TIME;
                    _this.resData.IS_DELAY= data.IS_DELAY;
                    _this.resData.DIAGNOSIS_UNIT_CODE_DT= data.DIAGNOSIS_UNIT_CODE_DT;
                    _this.resData.THROM_START_TIME_DT= data.THROM_START_TIME_DT;
                    _this.resData.THROM_DRUG_TYPE_DT= data.THROM_DRUG_TYPE_DT;
                    _this.resData.THROM_DRUG_CODE_DT= data.THROM_DRUG_CODE_DT;
                    _this.resData.IS_REPATENCY_DT= data.IS_REPATENCY_DT;
                    _this.resData.THROM_RESULT_DESC_DT= data.THROM_RESULT_DESC_DT;
                    _this.resData.PREOPERATIVE_TIMI_LEVEL= data.PREOPERATIVE_TIMI_LEVEL;
                    _this.resData.POSTOPERATIVE_TIMI_LEVEL= data.POSTOPERATIVE_TIMI_LEVEL;
                    _this.resData.DECISION_CABG_TIME= data.DECISION_CABG_TIME;
                    _this.resData.START_CABG_TIME= data.START_CABG_TIME;
                    _this.resData.END_CABG_TIME= data.END_CABG_TIME;
                    _this.resData.PERFUSION_MEASURE_CODE= data.PERFUSION_MEASURE_CODE;
                    _this.resData.PERFUSION_MEASURE_DESC= data.PERFUSION_MEASURE_DESC;
                    _this.resData.START_INTERVENTION_DATE= data.START_INTERVENTION_DATE;
                    _this.resData.END_INTERVENTION_DATE= data.END_INTERVENTION_DATE;
                    _this.resData.DELAY_REASON= data.DELAY_REASON;
                    _this.resData.RISK_LAMINATION= data.RISK_LAMINATION;
                    _this.resData.SIGN_OPERATE_AGREE_TIME= data.SIGN_OPERATE_AGREE_TIME;
                    _this.resData.OPERATION_RESULT= data.OPERATION_RESULT;
                    _this.resData.STAND_RID_DATE= data.STAND_RID_DATE;
                    _this.resData.START_TREATE_DATE= data.START_TREATE_DATE;
                    _this.resData.CCU_INTO_DATE= data.CCU_INTO_DATE;
                    _this.resData.TREATMENT_STRATEGY_CODE= data.TREATMENT_STRATEGY_CODE;
                    _this.resData.INTERLAYER_TYPE= data.INTERLAYER_TYPE;
                    _this.resData.ECC_CONSULTATION_DATE= data.ECC_CONSULTATION_DATE;
                    _this.resData.IMCD_NOTICE_DATE= data.IMCD_NOTICE_DATE;
                    _this.resData.IMCD_CONSULTATION_DATE= data.IMCD_CONSULTATION_DATE;
                    _this.resData.CHECK_RESULT_DATE= data.CHECK_RESULT_DATE;
                    _this.resData.CDU_CHECK_DATE= data.CDU_CHECK_DATE;
                    _this.resData.CDU_ARRIVE_DATE= data.CDU_ARRIVE_DATE;
                    _this.resData.IS_CDU= data.IS_CDU;
                    _this.resData.CT_REPORT_DATE= data.CT_REPORT_DATE;
                    _this.resData.CT_SCAN_DATE= data.CT_SCAN_DATE;
                    _this.resData.CT_ARRIVE_DATE= data.CT_ARRIVE_DATE;
                    _this.resData.USER_ARRIVE_DATE= data.USER_ARRIVE_DATE;
                    _this.resData.CT_FINISH_DATE= data.CT_FINISH_DATE;
                    _this.resData.CT_NOTICE_DATE= data.CT_NOTICE_DATE;
                    _this.resData.IS_ECT= data.IS_ECT;
                    _this.resData.ANTI_TREATMENT_DATE= data.ANTI_TREATMENT_DATE;
                    _this.resData.NSTEMI_TYPE= data.NSTEMI_TYPE;
                    _this.resData.THROM_CHECK= data.THROM_CHECK;
                    _this.resData.INTENSIFY_STATINS_TREAT= data.INTENSIFY_STATINS_TREAT;
                    _this.resData.RECEPTOR_RETARDANT_USING= data.RECEPTOR_RETARDANT_USING;
                    _this.resData.NOTICE_CDU_TIME= data.NOTICE_CDU_TIME;
                    _this.resData.THROM_START_AGREE_TIME= data.THROM_START_AGREE_TIME;
                    _this.resData.THROM_SIGN_AGREE_TIME= data.THROM_SIGN_AGREE_TIME;
                    _this.resData.TIME_INTERVAL= data.TIME_INTERVAL;
                    _this.resData.START_OPERATE_AGREE_TIME= data.START_OPERATE_AGREE_TIME;
                    _this.resData.ACTUAL_INTERVENTION_DATE= data.ACTUAL_INTERVENTION_DATE;
                    _this.resData.PERFUSION_MEASURE_OTHER= data.PERFUSION_MEASURE_OTHER;
                    _this.resData.IS_MRI= data.IS_MRI;
                    _this.resData.SUCCESS_PUNCTURE_TIME= data.SUCCESS_PUNCTURE_TIME;
                    _this.resData.IS_TPCI= data.IS_TPCI;
                    _this.resData.CREATE_ACCOUNT= data.CREATE_ACCOUNT;
                    _this.resData.CREATE_NAME= data.CREATE_NAME;
                    _this.resData.CREATE_DATE= data.CREATE_DATE;
                    _this.resData.UPDATE_NAME= data.UPDATE_NAME;
                    _this.resData.UPDATE_DATE= data.UPDATE_DATE;
                    _this.resData.IS_DIRECT= data.IS_DIRECT;
                }else {
                    _this.canSave = true;
                    _this.ORDER_ID = param.taskcode;
                    let iscomebyself = param.iscomebyself;
                    if(iscomebyself){
                        _this.ARRIVED_HOSPITAL_TIME = param.selfcometime;
                    }else {
                        _this.ARRIVED_HOSPITAL_TIME = param.arriveTime;
                    }


                    if(param.initData){
                        let data = JSON.parse(param.initData);
                        JsonFilter.parseObject(_this.resData,data);
                        if(_this.resData.DELAY_REASON){
                            let delayArr = _this.resData.DELAY_REASON.split(",");
                            if(delayArr){
                                for(let i in delayArr){
                                    let value = delayArr[i];
                                    for(let j in _this.DELAY_REASON){
                                        if(j == value){
                                            _this.DELAY_REASON[j] = "1";
                                        }
                                    }
                                }
                            }
                        }

                        // 球囊扩张时间
                        let BALLOON_EXPANSION_TIME = _this.resData.BALLOON_EXPANSION_TIME ? new Date(DateUtil.formatTime(_this.resData.BALLOON_EXPANSION_TIME,'yyyy-MM-dd hh:mm')).getTime() : ''
                        // 到达本院大门
                        _this.ARRIVED_HOSPITAL_TIME = _this.ARRIVED_HOSPITAL_TIME ? new Date(DateUtil.formatTime(_this.ARRIVED_HOSPITAL_TIME,'yyyy-MM-dd hh:mm')).getTime() : ''
                        if(BALLOON_EXPANSION_TIME && _this.ARRIVED_HOSPITAL_TIME){
                            let value = (BALLOON_EXPANSION_TIME - _this.ARRIVED_HOSPITAL_TIME)/1000/60
                            if(value > 0){
                                _this.resData.DTWOB_TIME = value
                            }
                        }
                    }
                }
            })
        },
        filters: {
            filterTime: function(item) {
                if(item) {
                    let time = DateUtil.formatTime(item,'yyyy-MM-dd hh:mm')
                    return time
                }
            }
        },
        methods: {
            finish: function() {
                WeexNativeModule.finish()
            },
            getTime: function(type) {
                let _this = this
                if(! _this.canSave){
                    return
                }
                let defaultdate
                let typeTime
                for(let key in _this.resData) {
                    if(key == type) {
                        typeTime = _this.resData[key]
                    }
                }
                if(!StringUtils.isEmpty(typeTime)){
                    defaultdate = DateUtil.formatTime(
                        new Date(typeTime),'yyyy-MM-dd hh:mm');
                }else {
                    defaultdate = DateUtil.formatTime(
                        new Date(),'yyyy-MM-dd hh:mm');
                }
                WeexNativeModule.selectDateTime(defaultdate,false,true,true,true,true,false,false,"","",function(time) {
                    for(let key in _this.resData) {
                        if(key == type) {
                            _this.resData[key] = DateUtil.formatTime(time.data,'yyyy-MM-dd hh:mm')
                        }
                    }

                    if(type == "BALLOON_EXPANSION_TIME"){
                        // 球囊扩张时间
                        let BALLOON_EXPANSION_TIME = _this.resData.BALLOON_EXPANSION_TIME ? new Date(DateUtil.formatTime(_this.resData.BALLOON_EXPANSION_TIME,'yyyy-MM-dd hh:mm')).getTime() : ''
                        // 到达本院大门
                        _this.ARRIVED_HOSPITAL_TIME = _this.ARRIVED_HOSPITAL_TIME ? new Date(DateUtil.formatTime(_this.ARRIVED_HOSPITAL_TIME,'yyyy-MM-dd hh:mm')).getTime() : ''
//                        WeexNativeModule.alert(_this.ARRIVED_HOSPITAL_TIME)
                        if(BALLOON_EXPANSION_TIME && _this.ARRIVED_HOSPITAL_TIME){
                            let value = (BALLOON_EXPANSION_TIME - _this.ARRIVED_HOSPITAL_TIME)/1000/60
//                                WeexNativeModule.alert(value)
                            if(value > 0){
                                _this.resData.DTWOB_TIME = value
                            }
                        }
                    }
                })
            },
            ISChecked: function (key,value) {
                if(! this.canSave){
                    return
                }
                this.resData[key] = this.resData[key] && this.resData[key] === value  ? '' : value
            },
            reverse: function (key){
                if(! this.canSave){
                    return
                }
                this.resData[key] = this.resData[key] && this.resData[key] !== '0' ? '0' : '1';
            },
            delayReason: function (key){
                if(! this.canSave){
                    return
                }
                this.DELAY_REASON[key] = this.DELAY_REASON[key] && this.DELAY_REASON[key] !== '0' ? '0' : '1';
            },

            save: function() {
                if(! this.canSave){
                    return
                }
                if(this.resData.IS_DELAY == 1) {
                    let delayReason = Object.keys(JsonFilter.filter(this.DELAY_REASON)).toString();
                    this.resData.DELAY_REASON = delayReason
                }
                let postjson = JsonFilter.filter(this.resData);
                postjson.ORDER_ID = this.ORDER_ID;
                WeexNativeModule.addEMNode(postjson)
            }
        }
    }
</script>
<style>
    .header {
        height: 40px;
        background-color: #FFF;
        display: flex;
        flex-direction: row;
        justify-content: space-between;    
        align-items: center;
        border-bottom-style: solid;
        border-bottom-width: 0.5px;
        border-bottom-color: #f2f2f2;
    }
    .header-left {
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }
    .header-left-img {
        margin-left: 5px;
        width: 30px;
        height: 30px;  
    }
    .header-right {
        width: 80px;
        height: 25px;
        background-color: #4c7fd8;
        margin-right: 20px;  
        border-radius: 2px;     
    }
    .header-text {
        font-size: 13px;
        color: #666;
    }
    .header-right-text {
        font-size: 13px;
        color: #FFF;
        text-align: center;
        line-height: 25px;       
    }
    .banner-tab {  
        width: 760px;      
        height: 30px;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-bottom-style: solid;
        border-bottom-width: 0.5px;
        border-bottom-color: #f2f2f2;
        padding-left: 5px;
        padding-right: 5px;
              
    }
    .tab {
        width: 80px;
        height: 30px;
        display: flex;
        justify-content: center; 
        margin-left: 5px;
        margin-right: 5px;
    }
    .tab-text {
        text-align: center;
        font-size: 12px;
        color: #666;
    }
    .tab-active {
        border-bottom-style: solid;
        border-bottom-width: 0.5px;
        border-bottom-color: #4c7fd8;
    }
    .content {
        padding-left: 40px;
        padding-right: 40px;      
        box-sizing: border-box;
    }
    .box {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;   
        height: 40px;
        align-items: center;
    }   
    .box-text {
        font-size: 12px;
        color: #666;
    }
    .line {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
        margin-right: 70px;
    }
    .mR-0 {
        margin-right: 0;
    }
    .title {
        width: 100px;
    }    
    .title-auto {
        margin-right: 5px;
    }
    .input {
        position: relative;
        flex: 1;
        box-sizing: border-box;
        padding-left: 8px;
        height: 25px;       
        border-radius: 5px;
        border-style: solid;
        border-width: 0.5px;
        border-color: #b1b1b1;
    }
    .input-text {  
        color: #666;
        line-height: 22px;     
        font-size: 12px;
    }   
    .input-unit {
        position: absolute;
        color: #666;
        font-size: 12px;
        top: 4px;
        right: 5px;
    }                
    .img-unit {
        position: absolute;                  
        top: 3px;
        right: 5px;
        width: 8px;
        height: 16px;
    }
    .mf-10 {
        margin-left: 10px;
    }  
    .pT-20 {
        padding-top: 20px;
    }  
    .box-active {
        background-color: #4c7fd8;
    }
    .box-text-active {
        color: #FFF;
    }
    .checkbox {
        width: 87px;
        height: 25px;
        background-color: #f2f2f2;
        border-radius: 3px;        
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .checkbox-text {
        font-size: 12px;
        color: #666;
    } 
    .checkbox-max {  
        display: flex;
        justify-content: center;
        align-items: center;    
        width: 140px;  
        height: 25px;
        background-color: #f2f2f2;
        border-radius: 3px;        
    }
    .checkbox-auto {  
        display: flex;
        justify-content: center;
        align-items: center;    
        padding-left: 10px;
        padding-right: 10px; 
        height: 25px;
        background-color: #f2f2f2;
        border-radius: 3px;        
    }
    .title-max {
        width: 120px;
    }
    .box-textarea {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;   
        height: 40px;       
    }
    .line-textarea {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        box-sizing: border-box;
        margin-right: 70px;
    }
    .title-textarea {
        width: 80px;
        padding-top: 8px;
    }
    .textarea {
        box-sizing: border-box;
        flex: 1;
        border-radius: 5px;
        border-style: solid;
        border-width: 0.5px;
        border-color: #b1b1b1;
        font-size: 12px;
        height: 25px;
        margin-left: 10px;
        padding-left: 3px;
    }
    .main-banner {
        height: 25px;
        background-color: #4c7fd8;
    }
    .main-banner-text {
        padding-left: 40px;
        color: #fff;
        line-height: 25px;
    }
</style>

